package com.song.my.imports;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Description: MyImportSelector：类描述
 * @author: songzhangyong
 * @Date: 2019/11/7 10:34
 */

public class MyImportSelector implements ImportSelector {

	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {

		System.out.println("MyImportSelector MyImportSelector MyImportSelector MyImportSelector");

		//这里MyImportBeanPostProcessorProxy 就是我们要写的代理类
		return new String[]{MyImportBeanPostProcessorProxy.class.getName()};
	}
}
